package com.ruoyi.worklog.mapper;

import com.ruoyi.worklog.domain.WlLeaderMember;
import com.ruoyi.worklog.domain.WlWorkLogProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author cw
 * @Date 2022/7/31 - 07 - 31
 * @Description com.ruoyi.worklog.mapper
 */
public interface WlWorkLogProjectMapper {
    //通过 日报查 项目
    List<Integer> selectProjects(int wl_id);
    //通过 项目 查日报
    List<Integer> selectWorkLogs(int project_id);
    //插入
    int insert(WlWorkLogProject wlWorkLogProject);
    //删除
    int delete(@Param("wl_id") int wl_id, @Param("project_id") int project_id);
    //通过删除日报id，则所有关系都删除
    int deleteProjects(@Param("wl_id") int wl_id);
    int deleteProjects2(Long[] wl_ids);
    //通过删除项目id，则所有关系都删除
    int deleteWorkLogs(@Param("project_id") int project_id);

    int deleteWorkLogs2(Long[] project_ids);
}
